# %%

from conn import mysql_engine, clip_annotated_record
from tqdm import tqdm

# %%

total = clip_annotated_record.estimated_document_count()
print("total:", total)

for clip in tqdm(
    clip_annotated_record.find({}, {"send_label_task_id": 1, "created_at": 1}).sort(
        {"_id": -1}
    ),
    total=total,
):
    if type(clip["send_label_task_id"]) != int:
        print(
            clip["send_label_task_id"],
            type(clip["send_label_task_id"]),
            clip["created_at"],
        )
